package api.doctor;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import common.Host;
import common.Request;

/**
 * 实现帮忙医医生端关闭会话接口CloseSubject接口调用
 * @author gaowen
 *
 */
public class CloseSubject
{
	/**
	 * 实现帮忙医医生端关闭咨询会话接口CloseSubject调用
	 * @param subjectId - 咨询会话ID
	 * @param token - 调用接口需要的token
	 * @return 接口返回数据
	 * @throws IOException
	 */
	public static String get(String subjectId, String token) throws IOException
	{
		//拼接接口地址
		String url = Host.getAddress() + "/api/Reception/CloseSubject";
		
		//接口参数赋值
		Map<String, String> parms = new HashMap<String, String>();
		parms.put("subjectId", subjectId);
			
		//调用接口并返回接口结果
		String result = Request.get(url, parms, token);
		return result;	
	}
	
}
